package com.khtn.org.stringcommand;

import static org.junit.Assert.*;
import junit.framework.Assert;
import junit.framework.TestCase;

import org.junit.Test;

import com.org.khtn.stringcommand.Format;

public class FormatTest  extends TestCase{

	@Test
	public void testFindObject() {
		Format a = new Format("select aaa from  bbb  where aaa=aaa");
		Assert.assertTrue(a.findObject("aaa", new String[]{"select","from"}));
		Assert.assertFalse(a.findObject("bbb", new String[]{"select","from"}));
		Assert.assertTrue(a.findObject("bbb", new String[]{"from","where"}));

	}

}
